package com.exchange.repository;

import com.exchange.entity.ExchangeCodeProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExchangeCodeProductRepository extends JpaRepository<ExchangeCodeProduct, Long> {
    List<ExchangeCodeProduct> findByExchangeCodeId(Long exchangeCodeId);
    List<ExchangeCodeProduct> findByProductId(Long productId);
    void deleteByExchangeCodeId(Long exchangeCodeId);
}